package
{
	import com.content.AppFacade;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageDisplayState;
	import flash.display.StageQuality;
	import flash.display.StageScaleMode;
	
	[SWF( width='1024', height='600', frameRate='30', backgroundColor='#d9d9d9' )]
	public class App extends Sprite
	{
		public static const NAME:String				= 'App';
		
		// Manual Resize，在初始化完成后，强行进行一次Setlayout, [Receive by AppMediate]
		public static const RESIZE_MANUAL:String	= NAME + '-' + 'ResizeManual';
		public static const RESIZE_SYS:String 		= NAME + "-" + "AppResizeSys";
		public static const MOUSEUP:String 		= NAME + "-" + "AppMouseUp";
		
		public function App()
		{
			Init();
			Start();
		}
		
		private function Init():void
		{
			// setup stage property
			this.stage.quality = StageQuality.HIGH;
			this.tabEnabled = false;
			this.tabChildren = false;
			
			this.stage.scaleMode = StageScaleMode.NO_SCALE;
			this.stage.align = StageAlign.TOP_LEFT;
//			this.stage.displayState = StageDisplayState.FULL_SCREEN;
		}
		
		private function Start():void{
			
			AppFacade.getInstance().startup( this );
		}
	}
}